<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>&#39;超省份链接&#39; | Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="html &#x3D; “””关于更新全国统计用区划代码和城乡划分代码的公告     BODY {MARGIN: 0px}BODY {FONT-SIZE: 12px}    TD {FONT-SIZE: 12px}    TH {FONT-SIZE: 12px}    .redBig {COLOR: #d00018; FONT-SIZE: 18px; FONT-WEIGHT: bold}    .STYLE">
<meta property="og:type" content="article">
<meta property="og:title" content="&#39;超省份链接&#39;">
<meta property="og:url" content="http://yoursite.com/2020/04/25/%E8%B6%85%E7%9C%81%E4%BB%BD%E9%93%BE%E6%8E%A5/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="html &#x3D; “””关于更新全国统计用区划代码和城乡划分代码的公告     BODY {MARGIN: 0px}BODY {FONT-SIZE: 12px}    TD {FONT-SIZE: 12px}    TH {FONT-SIZE: 12px}    .redBig {COLOR: #d00018; FONT-SIZE: 18px; FONT-WEIGHT: bold}    .STYLE">
<meta property="og:locale" content="en_US">
<meta property="article:published_time" content="2020-04-25T02:56:48.000Z">
<meta property="article:modified_time" content="2020-04-25T03:02:28.650Z">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  
<link rel="stylesheet" href="/css/style.css">

<meta name="generator" content="Hexo 4.2.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Hexo</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-超省份链接" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/04/25/%E8%B6%85%E7%9C%81%E4%BB%BD%E9%93%BE%E6%8E%A5/" class="article-date">
  <time datetime="2020-04-25T02:56:48.000Z" itemprop="datePublished">2020-04-25</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      &#39;超省份链接&#39;
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>html = “””<HTML><br><HEAD><br><META content="text/html; charset=gb2312" http-equiv=Content-Type><br><TITLE>关于更新全国统计用区划代码和城乡划分代码的公告 </TITLE><br><STYLE type=text/css><br>    BODY {MARGIN: 0px}BODY {FONT-SIZE: 12px}<br>    TD {FONT-SIZE: 12px}<br>    TH {FONT-SIZE: 12px}<br>    .redBig {COLOR: #d00018; FONT-SIZE: 18px; FONT-WEIGHT: bold}<br>    .STYLE3 a{COLOR: #fff; text-decoration:none;}<br>    .STYLE5 {COLOR: #236fbe; FONT-WEIGHT: bold}<br>    .content {LINE-HEIGHT: 1.5; FONT-SIZE: 10.4pt}<br>    .tdPading {PADDING-LEFT: 30px}.blue {COLOR: #0000ff}<br>    .STYLE6 {COLOR: #ffffff}<br>    .a2 {LINE-HEIGHT: 1.5; COLOR: #2a6fbd; FONT-SIZE: 12px}<br>    a2:link {LINE-HEIGHT: 1.5; COLOR: #2a6fbd; FONT-SIZE: 12px}<br>    a2:hover {LINE-HEIGHT: 1.5; COLOR: #2a6fbd; FONT-SIZE: 12px; TEXT-DECORATION: underline}<br>    a2:visited {LINE-HEIGHT: 1.5; COLOR: #2a6fbd; FONT-SIZE: 12px}<br></STYLE><br><SCRIPT language=javascript><br>function doZoom(size){document.getElementById('zoom').style.fontSize=size+'px';}<br></SCRIPT><br><META name=GENERATOR content="MSHTML 8.00.7600.16700"><br></HEAD><br><BODY><br><TABLE border=0 cellSpacing=0 cellPadding=0 width=778 align=center><br><TBODY><br><TR><TD colSpan=2><IMG src="http://www.stats.gov.cn/images/banner.jpg" width=778 height=135></TD></TR></TBODY></TABLE><MAP id=Map name=Map><AREA href="http://www.stats.gov.cn/english/" shape=rect coords=277,4,328,18><AREA href="http://www.stats.gov.cn:82/" shape=rect coords=181,4,236,18><AREA href="http://www.stats.gov.cn/" shape=rect coords=85,4,140,17></MAP><TABLE border=0 cellSpacing=0 cellPadding=0 width=778 align=center><TBODY><TR><TD vAlign=top><TABLE style="MARGIN-TOP: 15px; MARGIN-BOTTOM: 18px" border=0 cellSpacing=0 cellPadding=0 width="100%" align=center><TBODY><TR><TD style=" BACKGROUND-REPEAT: repeat-x; BACKGROUND-POSITION: 50% top" background=images/topLine.gif align=right></TD></TR><TR><TD style=" BACKGROUND-REPEAT: repeat-y; BACKGROUND-POSITION: right 50%" vAlign=top background=images/rightBorder.gif><TABLE border=0 cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR><TD width="1%" height="200" vAlign=top></p>
<table class='provincetable' width=775 ><tr ><td colspan=8  height=1 style='FONT-SIZE: 5px' >&nbsp;</td></tr>
<tr class='provincehead'><td  colspan=8 align='center' style='FONT-SIZE: 16px' height=39 vAlign='center' background='images/tiao.jpg'>
<strong>关于更新全国统计用区划代码和城乡划分代码的公告</strong></td>
</tr>    <tr >
  <td colspan=8  height=50 style='FONT-SIZE: 12px' > 　　为更好满足2020年常规统计调查和专项调查的需要，国家统计局组织开展了2019年度统计用区划代码和城乡划分代码更新维护工作，调查时点为2019年10月31日。目前，已完成更新维护工作,现予公布。
  <br> 　　2019年统计用区划代码和城乡划分代码依据国务院批复同意的《关于统计上划分城乡的规定》（国函〔2008〕60号）及国家统计局印发的《统计用区划代码和城乡划分代码编制规则》（国统字〔2009〕91号）编制。
  <br> 　　此次发布内容为2019年全国统计用区划代码（12位）和城乡分类代码（3位），地域范围为国家统计局开展统计调查的全国31个省、自治区、直辖市，未包括我国台湾省、香港特别行政区、澳门特别行政区。
  <br> 　　《关于统计上划分城乡的规定》指出：“本规定作为统计上划分城乡的依据，不改变现有的行政区划、隶属关系、管理权限和机构编制，以及土地规划、城乡规划等有关规定”。统计用区划代码和城乡划分代码，在统计工作中应当使用，需要在其他工作中使用时，请务必结合有关实际情况。
  </td>
</tr>
<tr class='provincetr'><td><a href='11.html'>北京市<br/></a></td><td><a href='12.html'>天津市<br/></a></td><td><a href='13.html'>河北省<br/></a></td><td><a href='14.html'>山西省<br/></a></td><td><a href='15.html'>内蒙古自治区<br/></a></td><td><a href='21.html'>辽宁省<br/></a></td><td><a href='22.html'>吉林省<br/></a></td><td><a href='23.html'>黑龙江省<br/></a></td></tr>
<tr class='provincetr'><td><a href='31.html'>上海市<br/></a></td><td><a href='32.html'>江苏省<br/></a></td><td><a href='33.html'>浙江省<br/></a></td><td><a href='34.html'>安徽省<br/></a></td><td><a href='35.html'>福建省<br/></a></td><td><a href='36.html'>江西省<br/></a></td><td><a href='37.html'>山东省<br/></a></td><td><a href='41.html'>河南省<br/></a></td></tr>
<tr class='provincetr'><td><a href='42.html'>湖北省<br/></a></td><td><a href='43.html'>湖南省<br/></a></td><td><a href='44.html'>广东省<br/></a></td><td><a href='45.html'>广西壮族自治区<br/></a></td><td><a href='46.html'>海南省<br/></a></td><td><a href='50.html'>重庆市<br/></a></td><td><a href='51.html'>四川省<br/></a></td><td><a href='52.html'>贵州省<br/></a></td></tr>
<tr class='provincetr'><td><a href='53.html'>云南省<br/></a></td><td><a href='54.html'>西藏自治区<br/></a></td><td><a href='61.html'>陕西省<br/></a></td><td><a href='62.html'>甘肃省<br/></a></td><td><a href='63.html'>青海省<br/></a></td><td><a href='64.html'>宁夏回族自治区<br/></a></td><td><a href='65.html'>新疆维吾尔自治区<br/></a></td><td><br/></td></tr>

</table>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD style="BACKGROUND-REPEAT: repeat-x; BACKGROUND-POSITION: 50% top"          background=images/borderBottom.gif>
</TD></TR></TBODY>
</TABLE></TD></TR>  <TR>    <TD bgColor=#e2eefc height=2></TD></TR>  <TR>
<TD class=STYLE3 height=60>
<DIV align=center style="background-color:#1E67A7; height:75px; color:#fff;"><br/>
版权所有：国家统计局　　<A class=STYLE3       href="http://www.miibeian.gov.cn/"       target=_blank>京ICP备05034670号</A><BR><BR>地址：北京市西城区月坛南街57号（100826）<BR></DIV></TD></TR></TBODY></TABLE></BODY></HTML>
"""




<p>import re<br>pattern = “‘\d{2}.html’&gt;(.*?)<br/>“<br>provinces = re.findall(pattern,html)<br>print(provinces)<br>print(len(provinces))</p>
<p>pattern = “&lt;a\shref=’(\d{2}.html)’&gt;”<br>hrefs = re.findall(pattern,html)<br>for item in zip(provinces,hrefs):<br>    print(item)</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2020/04/25/%E8%B6%85%E7%9C%81%E4%BB%BD%E9%93%BE%E6%8E%A5/" data-id="ck9frj1kc0009hgv16wl96zw3" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2020/04/25/%E7%83%AD%E7%82%B9%E6%8A%93%E5%8F%96%E5%B0%81%E8%A3%85%E5%87%BD%E6%95%B0/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          &#39;热点抓取封装函数&#39;
        
      </div>
    </a>
  
  
    <a href="/2020/02/19/%E6%88%91%E7%9A%84%E7%AC%AC%E4%B8%80%E7%AF%87%E5%8D%9A%E5%AE%A2/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">我的第一篇博客</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    

  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/04/">April 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/02/">February 2020</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2020/04/25/%E7%AC%94%E8%AE%B0/">&#39;笔记&#39;</a>
          </li>
        
          <li>
            <a href="/2020/04/25/%E6%8F%90%E5%8F%96IP%E4%BF%A1%E6%81%AF/">&#39;提取IP信息&#39;</a>
          </li>
        
          <li>
            <a href="/2020/04/25/%E5%BF%85%E5%BA%94%E7%BF%BB%E8%AF%91/">&#39;必应翻译&#39;</a>
          </li>
        
          <li>
            <a href="/2020/04/25/B%E7%AB%99%E8%AF%84%E8%AE%BA/">&#39;B站评论&#39;</a>
          </li>
        
          <li>
            <a href="/2020/04/25/B%E7%AB%99%E8%AF%84%E8%AE%BA-ruquests%E2%80%99/">&#39;B站评论_ruquests’</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2020 John Doe<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">

  
<script src="/fancybox/jquery.fancybox.pack.js"></script>




<script src="/js/script.js"></script>




  </div>
</body>
</html>